package kjh820909.swing;

import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.util.Arrays;

import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.ScrollPaneConstants;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.JRadioButton;
import javax.swing.JTextPane;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;

public class Kara_main extends JFrame {

	private JPanel contentPane;
	private JTable table_1;
	private JTable table_2;
	private CardLayout card =new CardLayout(0,0);
	//private JTabbedPane cardPane = new JTabbedPane(JTabbedPane.TOP);
	private JPasswordField pwd;
	private JTextField uid;
	private JPanel cardpanel;
	private JPanel rightCardPane;
	private JTable selectAll_table;
	private JTextField txtSearch;
	private JTable age_Table;
	private JRadioButton radio_30;
	private JTable sex_table;
	
	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Kara_main frame = new Kara_main();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Kara_main() {
		setTitle(":: 401노래방 ::");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 800, 600);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		
		JPanel rightSection = new JPanel();
		rightSection.setPreferredSize(new Dimension(270, 10));
		contentPane.add(rightSection, BorderLayout.EAST);
		rightSection.setLayout(new BorderLayout(0, 0));
		

		
		final JPanel rightCardPane = new JPanel();
		rightCardPane.setPreferredSize(new Dimension(300, 350));
		rightSection.add(rightCardPane, BorderLayout.NORTH);
		rightCardPane.setLayout(new CardLayout(0, 0));
//		rightCardPane.setLayout( card );
		
		final JPanel adminCard = new JPanel();
		rightCardPane.add(adminCard, "adminCard");
		adminCard.setLayout(new BorderLayout(0, 0));
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		adminCard.add(tabbedPane, BorderLayout.CENTER);
		
		JScrollPane adminsong = new JScrollPane();
		adminsong.addMouseListener(new MouseAdapter() {
			}
		);
		adminsong.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		tabbedPane.addTab("노래관리", null, adminsong, null);
		
		table_1 = new JTable();
		adminsong.setViewportView(table_1);
		
		JScrollPane adminMem = new JScrollPane(); 
		adminMem.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		tabbedPane.addTab("회원관리", null, adminMem, null);
		
		table_2 = new JTable();
		adminMem.setViewportView(table_2);
		
		final JPanel memberCard = new JPanel();
		rightCardPane.add(memberCard, "memberCard");
		memberCard.setLayout(new BorderLayout(0, 0));
		
		JTabbedPane tabbedPane_1 = new JTabbedPane(JTabbedPane.TOP);
		memberCard.add(tabbedPane_1, BorderLayout.CENTER);
		
		JPanel searchPanel = new JPanel();
		tabbedPane_1.addTab(" 전곡 검색 ", null, searchPanel, null);
		searchPanel.setLayout(new BorderLayout(0, 0));
		
		JPanel search = new JPanel();
		search.setPreferredSize(new Dimension(10, 40));
		searchPanel.add(search, BorderLayout.NORTH);
		
		txtSearch = new JTextField();
		txtSearch.setColumns(10);
		
		JButton searchbtn = new JButton(" 검 색 ");
		GroupLayout gl_search = new GroupLayout(search);
		gl_search.setHorizontalGroup(
			gl_search.createParallelGroup(Alignment.LEADING)
				.addGroup(Alignment.TRAILING, gl_search.createSequentialGroup()
					.addGap(22)
					.addComponent(txtSearch, GroupLayout.DEFAULT_SIZE, 135, Short.MAX_VALUE)
					.addGap(18)
					.addComponent(searchbtn)
					.addGap(21))
		);
		gl_search.setVerticalGroup(
			gl_search.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_search.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_search.createParallelGroup(Alignment.BASELINE)
						.addComponent(txtSearch, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
						.addComponent(searchbtn))
					.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
		);
		search.setLayout(gl_search);
		
		JScrollPane searchScroll = new JScrollPane();
		searchScroll.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		searchPanel.add(searchScroll, BorderLayout.CENTER);
		
		selectAll_table = new JTable();
		searchScroll.setViewportView(selectAll_table);
		
		JPanel sex_Favor = new JPanel();
		tabbedPane_1.addTab(" 성별 애창곡 ", null, sex_Favor, null);
		sex_Favor.setLayout(new BorderLayout(0, 0));
		
		JPanel sex_Panel = new JPanel();
		sex_Panel.setPreferredSize(new Dimension(10, 35));
		sex_Favor.add(sex_Panel, BorderLayout.NORTH);
		
		JRadioButton male = new JRadioButton("남성");
		
		JRadioButton Female = new JRadioButton("여성");
		GroupLayout gl_sex_Panel = new GroupLayout(sex_Panel);
		gl_sex_Panel.setHorizontalGroup(
			gl_sex_Panel.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_sex_Panel.createSequentialGroup()
					.addGap(47)
					.addComponent(male)
					.addPreferredGap(ComponentPlacement.RELATED, 63, Short.MAX_VALUE)
					.addComponent(Female, GroupLayout.PREFERRED_SIZE, 49, GroupLayout.PREFERRED_SIZE)
					.addGap(57))
		);
		gl_sex_Panel.setVerticalGroup(
			gl_sex_Panel.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_sex_Panel.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_sex_Panel.createParallelGroup(Alignment.BASELINE)
						.addComponent(male)
						.addComponent(Female))
					.addContainerGap(11, Short.MAX_VALUE))
		);
		sex_Panel.setLayout(gl_sex_Panel);
		
		JScrollPane sex_Pane = new JScrollPane();
		sex_Pane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		sex_Favor.add(sex_Pane, BorderLayout.CENTER);
		
		sex_table = new JTable();
		sex_Pane.setViewportView(sex_table);
		
		JPanel age_Favor = new JPanel();
		tabbedPane_1.addTab(" 연령별 애창곡 ", null, age_Favor, null);
		age_Favor.setLayout(new BorderLayout(0, 0));
		
		JPanel age_Panel = new JPanel();
		age_Panel.setPreferredSize(new Dimension(10, 35));
		age_Favor.add(age_Panel, BorderLayout.NORTH);
		
		JRadioButton radio_10 = new JRadioButton("10대");
		radio_10.setFont(new Font("굴림", Font.PLAIN, 10));
		
		JRadioButton radio_20 = new JRadioButton("20대");
		radio_20.setFont(new Font("굴림", Font.PLAIN, 10));
		
		radio_30 = new JRadioButton("30대");
		radio_30.setFont(new Font("굴림", Font.PLAIN, 10));
		
		JRadioButton radio_40 = new JRadioButton("40대");
		radio_40.setFont(new Font("굴림", Font.PLAIN, 10));
		
		JRadioButton radio_50 = new JRadioButton("50대");
		radio_50.setFont(new Font("굴림", Font.PLAIN, 10));
		GroupLayout gl_age_Panel = new GroupLayout(age_Panel);
		gl_age_Panel.setHorizontalGroup(
			gl_age_Panel.createParallelGroup(Alignment.LEADING)
				.addGroup(Alignment.TRAILING, gl_age_Panel.createSequentialGroup()
					.addContainerGap(10, Short.MAX_VALUE)
					.addComponent(radio_10)
					.addPreferredGap(ComponentPlacement.UNRELATED)
					.addComponent(radio_20, GroupLayout.PREFERRED_SIZE, 49, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(radio_30, GroupLayout.PREFERRED_SIZE, 49, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(radio_40, GroupLayout.PREFERRED_SIZE, 49, GroupLayout.PREFERRED_SIZE)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(radio_50, GroupLayout.PREFERRED_SIZE, 49, GroupLayout.PREFERRED_SIZE)
					.addContainerGap())
		);
		gl_age_Panel.setVerticalGroup(
			gl_age_Panel.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_age_Panel.createSequentialGroup()
					.addContainerGap()
					.addGroup(gl_age_Panel.createParallelGroup(Alignment.BASELINE)
						.addComponent(radio_10)
						.addComponent(radio_20)
						.addComponent(radio_30)
						.addComponent(radio_40)
						.addComponent(radio_50))
					.addContainerGap(13, Short.MAX_VALUE))
		);
		age_Panel.setLayout(gl_age_Panel);
		
		JScrollPane agePane = new JScrollPane();
		agePane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		age_Favor.add(agePane, BorderLayout.CENTER);
		
		age_Table = new JTable();
		agePane.setViewportView(age_Table);
		
		cardpanel = new JPanel();
		rightSection.add(cardpanel, BorderLayout.WEST);
		cardpanel.setLayout(card);
		
		final JPanel login = new JPanel();
		cardpanel.add(login, "login");
		
		final JPanel admin = new JPanel();
		cardpanel.add(admin, "admin");

		JLabel txtUid = new JLabel("아이디");
		
		JLabel txtPwd = new JLabel("비밀번호");
		
		pwd = new JPasswordField();
		
		uid = new JTextField();
		
		uid.setColumns(10);
		
		JButton loginBtn = new JButton("로그인");
		loginBtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
//				System.out.println(uid.getText());
//				System.out.println(pwd.getPassword());
//				if (uid.getText().equals("asd") && pwd.getPassword().equals("123")) {
//					card.show(cardpanel, "admin");}
				if ( uid.getText().equals("asd") && pwd.getText().equals("asd")){
					card.show(cardpanel, "admin");}
//					card.show(cardpanel, "logout"); 
//					card.show(rightCardPane, "MemberCard");}
					

				
				else 
					{JOptionPane.showMessageDialog(null, "아이디와 비밀번호가 맞지 않습니다" );}
					
			}
		});
		
		JButton joinBtn = new JButton("회원가입");
		
		JLabel log = new JLabel("로그인");
		log.setFont(new Font("굴림", Font.BOLD, 12));
		GroupLayout gl_login = new GroupLayout(login);
		gl_login.setHorizontalGroup(
			gl_login.createParallelGroup(Alignment.LEADING)
				.addGap(0, 270, Short.MAX_VALUE)
				.addGroup(gl_login.createSequentialGroup()
					.addGroup(gl_login.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_login.createSequentialGroup()
							.addGap(29)
							.addGroup(gl_login.createParallelGroup(Alignment.TRAILING)
								.addGroup(gl_login.createSequentialGroup()
									.addGroup(gl_login.createParallelGroup(Alignment.TRAILING)
										.addComponent(txtUid)
										.addComponent(txtPwd))
									.addGap(18)
									.addGroup(gl_login.createParallelGroup(Alignment.LEADING, false)
										.addComponent(pwd)
										.addComponent(uid)))
								.addGroup(gl_login.createSequentialGroup()
									.addComponent(loginBtn, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE)
									.addGap(18)
									.addComponent(joinBtn))))
						.addGroup(gl_login.createSequentialGroup()
							.addContainerGap()
							.addComponent(log)))
					.addContainerGap(59, Short.MAX_VALUE))
		);
		gl_login.setVerticalGroup(
			gl_login.createParallelGroup(Alignment.LEADING)
				.addGap(0, 200, Short.MAX_VALUE)
				.addGroup(gl_login.createSequentialGroup()
					.addContainerGap()
					.addComponent(log)
					.addGap(41)
					.addGroup(gl_login.createParallelGroup(Alignment.BASELINE)
						.addComponent(txtUid)
						.addComponent(uid, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addPreferredGap(ComponentPlacement.UNRELATED)
					.addGroup(gl_login.createParallelGroup(Alignment.BASELINE)
						.addComponent(txtPwd)
						.addComponent(pwd, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
					.addGap(18)
					.addGroup(gl_login.createParallelGroup(Alignment.BASELINE)
						.addComponent(loginBtn)
						.addComponent(joinBtn))
					.addGap(37))
		);
		login.setLayout(gl_login);
		
		JPanel logout = new JPanel();
		cardpanel.add(logout, "logout");
		
		JLabel label_3 = new JLabel("");
		
		JButton button_14 = new JButton("로그아웃");
		
		JLabel label_4 = new JLabel("님 환영합니다!");
		
		JLabel label_5 = new JLabel("수지");
		label_5.setFont(new Font("굴림", Font.BOLD, 16));
		
		JButton btnNewButton = new JButton("정보수정");
		GroupLayout gl_logout = new GroupLayout(logout);
		gl_logout.setHorizontalGroup(
			gl_logout.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_logout.createSequentialGroup()
					.addContainerGap()
					.addComponent(label_3, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE)
					.addGap(18)
					.addGroup(gl_logout.createParallelGroup(Alignment.LEADING, false)
						.addComponent(button_14, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
						.addComponent(label_4)
						.addComponent(label_5)
						.addComponent(btnNewButton, 0, 0, Short.MAX_VALUE))
					.addContainerGap(54, Short.MAX_VALUE))
		);
		gl_logout.setVerticalGroup(
			gl_logout.createParallelGroup(Alignment.TRAILING)
				.addGroup(gl_logout.createSequentialGroup()
					.addGroup(gl_logout.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_logout.createSequentialGroup()
							.addContainerGap()
							.addComponent(label_3, GroupLayout.PREFERRED_SIZE, 172, Short.MAX_VALUE))
						.addGroup(gl_logout.createSequentialGroup()
							.addGap(40)
							.addComponent(label_5)
							.addPreferredGap(ComponentPlacement.RELATED)
							.addComponent(label_4)
							.addPreferredGap(ComponentPlacement.RELATED, 38, Short.MAX_VALUE)
							.addComponent(btnNewButton)
							.addGap(18)
							.addComponent(button_14)))
					.addGap(19))
		);
		logout.setLayout(gl_logout);
		
		
		JLabel label_6 = new JLabel("");
		label_6.setBorder(new LineBorder(Color.LIGHT_GRAY));
		
		JButton button_15 = new JButton("로그아웃");
		button_15.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				card.show(cardpanel, "login");
			}
		});
		
		JLabel label_7 = new JLabel("관리자 페이지");
		label_7.setFont(new Font("굴림", Font.BOLD, 16));
		GroupLayout gl_admin = new GroupLayout(admin);
		gl_admin.setHorizontalGroup(
			gl_admin.createParallelGroup(Alignment.LEADING)
				.addGap(0, 270, Short.MAX_VALUE)
				.addGroup(gl_admin.createSequentialGroup()
					.addContainerGap()
					.addComponent(label_6, GroupLayout.PREFERRED_SIZE, 105, GroupLayout.PREFERRED_SIZE)
					.addGroup(gl_admin.createParallelGroup(Alignment.LEADING)
						.addGroup(gl_admin.createSequentialGroup()
							.addPreferredGap(ComponentPlacement.RELATED, 60, Short.MAX_VALUE)
							.addComponent(button_15, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE)
							.addContainerGap())
						.addGroup(gl_admin.createSequentialGroup()
							.addGap(18)
							.addComponent(label_7)
							.addContainerGap())))
		);
		gl_admin.setVerticalGroup(
			gl_admin.createParallelGroup(Alignment.LEADING)
				.addGap(0, 200, Short.MAX_VALUE)
				.addGroup(gl_admin.createSequentialGroup()
					.addGroup(gl_admin.createParallelGroup(Alignment.LEADING, false)
						.addGroup(gl_admin.createSequentialGroup()
							.addContainerGap()
							.addComponent(label_6, GroupLayout.PREFERRED_SIZE, 171, GroupLayout.PREFERRED_SIZE))
						.addGroup(gl_admin.createSequentialGroup()
							.addGap(50)
							.addComponent(label_7, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
							.addComponent(button_15)))
					.addContainerGap(19, Short.MAX_VALUE))
		);
		admin.setLayout(gl_admin);
		
		JPanel leftSection = new JPanel();
		contentPane.add(leftSection, BorderLayout.CENTER);
		leftSection.setLayout(new BorderLayout(0, 0));
		
		JPanel decoLabel = new JPanel();
		decoLabel.setPreferredSize(new Dimension(40, 200));
		leftSection.add(decoLabel, BorderLayout.SOUTH);
		decoLabel.setLayout(new BorderLayout(0, 0));
		
		JLabel lblNewLabel_1 = new JLabel("Speaker img");
		lblNewLabel_1.setIcon(new ImageIcon(Kara_main.class.getResource("/img/iTunes.png")));
		lblNewLabel_1.setPreferredSize(new Dimension(150, 15));
		decoLabel.add(lblNewLabel_1, BorderLayout.WEST);
		
		JLabel lblNewLabel_4 = new JLabel("");
		lblNewLabel_4.setIcon(new ImageIcon(Kara_main.class.getResource("/img/iTunes.png")));
		lblNewLabel_4.setPreferredSize(new Dimension(150, 15));
		decoLabel.add(lblNewLabel_4, BorderLayout.EAST);
		
		JPanel panel_4 = new JPanel();
		decoLabel.add(panel_4, BorderLayout.CENTER);
		panel_4.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_5 = new JPanel();
		panel_5.setPreferredSize(new Dimension(10, 30));
		panel_4.add(panel_5, BorderLayout.NORTH);
		
		JTextPane textPane = new JTextPane();
		textPane.setEditable(false);
		textPane.setPreferredSize(new Dimension(100, 21));
		GroupLayout gl_panel_5 = new GroupLayout(panel_5);
		gl_panel_5.setHorizontalGroup(
			gl_panel_5.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_panel_5.createSequentialGroup()
					.addContainerGap()
					.addComponent(textPane, GroupLayout.PREFERRED_SIZE, 181, GroupLayout.PREFERRED_SIZE)
					.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
		);
		gl_panel_5.setVerticalGroup(
			gl_panel_5.createParallelGroup(Alignment.LEADING)
				.addComponent(textPane, GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
		);
		panel_5.setLayout(gl_panel_5);
		
		JPanel panel_6 = new JPanel();
		panel_4.add(panel_6, BorderLayout.CENTER);
		panel_6.setLayout(new GridLayout(0, 3, 3, 3));
		
		JButton button_1 = new JButton("1");
		button_1.setPreferredSize(new Dimension(30, 20));
		button_1.setHorizontalTextPosition(SwingConstants.LEFT);
		button_1.setFont(new Font("굴림", Font.BOLD, 20));
		panel_6.add(button_1);
		
		JButton button_2 = new JButton("2");
		button_2.setPreferredSize(new Dimension(30, 20));
		button_2.setHorizontalTextPosition(SwingConstants.LEFT);
		button_2.setFont(new Font("굴림", Font.BOLD, 20));
		panel_6.add(button_2);
		
		JButton button = new JButton("3");
		button.setPreferredSize(new Dimension(30, 20));
		button.setHorizontalTextPosition(SwingConstants.LEFT);
		button.setFont(new Font("굴림", Font.BOLD, 20));
		panel_6.add(button);
		
		JButton button_3 = new JButton("4");
		button_3.setPreferredSize(new Dimension(30, 20));
		button_3.setHorizontalTextPosition(SwingConstants.LEFT);
		button_3.setFont(new Font("굴림", Font.BOLD, 20));
		panel_6.add(button_3);
		
		JButton button_4 = new JButton("5");
		button_4.setPreferredSize(new Dimension(30, 20));
		button_4.setHorizontalTextPosition(SwingConstants.LEFT);
		button_4.setFont(new Font("굴림", Font.BOLD, 20));
		panel_6.add(button_4);
		
		JButton button_5 = new JButton("6");
		button_5.setPreferredSize(new Dimension(30, 20));
		button_5.setHorizontalTextPosition(SwingConstants.LEFT);
		button_5.setFont(new Font("굴림", Font.BOLD, 20));
		panel_6.add(button_5);
		
		JButton button_6 = new JButton("7");
		button_6.setPreferredSize(new Dimension(30, 20));
		button_6.setHorizontalTextPosition(SwingConstants.LEFT);
		button_6.setFont(new Font("굴림", Font.BOLD, 20));
		panel_6.add(button_6);
		
		JButton button_7 = new JButton("8");
		button_7.setPreferredSize(new Dimension(30, 20));
		button_7.setHorizontalTextPosition(SwingConstants.LEFT);
		button_7.setFont(new Font("굴림", Font.BOLD, 20));
		panel_6.add(button_7);
		
		JButton button_8 = new JButton("9");
		button_8.setPreferredSize(new Dimension(30, 20));
		button_8.setHorizontalTextPosition(SwingConstants.LEFT);
		button_8.setFont(new Font("굴림", Font.BOLD, 20));
		panel_6.add(button_8);
		
		JButton button_9 = new JButton("시작");
		button_9.setPreferredSize(new Dimension(30, 20));
		button_9.setHorizontalTextPosition(SwingConstants.LEFT);
		button_9.setFont(new Font("굴림", Font.BOLD, 12));
		panel_6.add(button_9);
		
		JButton button_10 = new JButton("0");
		button_10.setPreferredSize(new Dimension(30, 20));
		button_10.setHorizontalTextPosition(SwingConstants.LEFT);
		button_10.setFont(new Font("굴림", Font.BOLD, 20));
		panel_6.add(button_10);
		
		JButton button_11 = new JButton("취소");
		button_11.setPreferredSize(new Dimension(30, 20));
		button_11.setHorizontalTextPosition(SwingConstants.LEFT);
		button_11.setFont(new Font("굴림", Font.BOLD, 12));
		panel_6.add(button_11);
		
		JPanel top = new JPanel();
		top.setPreferredSize(new Dimension(10, 60));
		leftSection.add(top, BorderLayout.NORTH);
		
		JLabel lblNewLabel_2 = new JLabel("");
		lblNewLabel_2.setIcon(new ImageIcon(Kara_main.class.getResource("/img/TOPIMG copy.jpg")));
		top.add(lblNewLabel_2);
		
		JPanel playPanel = new JPanel();
		leftSection.add(playPanel, BorderLayout.CENTER);
	}
}
